﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;

using Stp.Core;
using Stp.Core.Data;

namespace Stp.Data
{
    public class AccountMapper : IAccountMapper
    {
        public void CreateAccount(AccountModel aModel)
        {
            Datastore.CustomerAccount.Add(aModel.Email, aModel);
        }

        public AccountModel FindAccountByEmail(string email)
        {
            return Datastore.CustomerAccount[email];
        }

        public void UpdateAccountStatus(string email, string status)
        {
            Datastore.CustomerAccount[email].Status = status;
        }
    }
}
